package me.huangxiang.springlearnning.computer;

public abstract class AbstractComputer implements Computer {
    @Override
    public void boot() {
        biosChecking();
        loadOS();
        System.out.println("Computer has been launch! ");
    }

    @Override
    public void shutdown() {
        userLogout();
        resourceFree();
        System.out.println("Good bye.");
    }

    protected abstract void biosChecking();

    protected abstract void loadOS();

    protected abstract void userLogout();

    protected abstract void resourceFree();
}
